package com.echat.business.book.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.echat.business.book.model.DiscussionReply;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 评论回复表 Mapper 接口
 * </p>
 *
 * @author chentl123
 * @since 2019-05-28
 */
public interface DiscussionReplyMapper extends BaseMapper<DiscussionReply> {
    /**
     * 根据评论id 获取 所有回复
     * @param discussionId
     * @return
     */
    List<DiscussionReply> getReplysByDiscussionId(@Param("discussionId") Integer discussionId);
}
